import 'package:flutter/material.dart';

class ChannerDetail extends StatefulWidget {
  var arguments;
  ChannerDetail({Key? key, this.arguments}) : super(key: key);

  @override
  _ChannerDetailState createState() => _ChannerDetailState(this.arguments);
}

class _ChannerDetailState extends State<ChannerDetail> {
  var arguments;
  _ChannerDetailState(this.arguments);
  @override
  Widget build(BuildContext context) {
    return NestedScrollView(
      headerSliverBuilder: (BuildContext context, bool b) {
        return [
          SliverAppBar(
            centerTitle: true,
            pinned: true,
            floating: true,
            expandedHeight: 300,
            flexibleSpace: FlexibleSpaceBar(
              title: Text(
                arguments['channel'],
                style: TextStyle(color: Colors.orangeAccent),
              ),
              centerTitle: true,
              background: Container(
                width: 300,
                height: 300,
                color: Colors.blue[50],
                child: Center(
                  child: Image.network(
                    arguments['url'],
                    color: Colors.orangeAccent,
                  ),
                ),
              ),
            ),
          ),
        ];
      },
      body: Center(child: Text('内容正在建设')),
    );
  }
}
